package com.bus.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bus.entity.Products;

@Controller
public class TestController {
	@RequestMapping("/json.action")
	public String json() {
		return "admin/files/jsonTest.jsp";
	}

	@RequestMapping("/jsonTest.action")
	public @ResponseBody Products jsonTest(@RequestBody Products p) {
		System.out.println(p);
		return p;
	}

}
